package cn.ztr.familyalbum.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-05-28
 */
@TableName("growth_album_documents")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "订单列表参数",description = "")
public class GrowthAlbumDocuments  implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * id
     */
    @ApiModelProperty("订单id")
    private Long id;
    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    @TableField("order_number")
    private String orderNumber;
    /**
     * 订单状态：1:待付款 2:已付款 3:已取消 4:过期
     */
    @ApiModelProperty(value = "订单状态")
    private Integer state;
    /**
     * 金额
     */
    @ApiModelProperty(value = "金额")
    @TableField("money_amoun")
    private BigDecimal moneyAmoun;
    /**
     * 支付方式 1：微信  2：支付宝
     */
    @ApiModelProperty(value = "支付方式")
    @TableField("method_payment")
    private Integer methodPayment;
    /**
     * 支付设备 1:ios 2: pc 3:andriod 4:小程序
     */
    @ApiModelProperty(value = "支付设备")
    @TableField("pay_equipment")
    private Integer payEquipment;
    /**
     * 订单类型 1：测试订单
     */
    @ApiModelProperty(value = "订单类型")
    @TableField("order_type")
    private Integer orderType;
    /**
     * 空间大小
     */
    @ApiModelProperty(value = "空间大小")
    @TableField("space_size")
    private Double spaceSize;
    /**
     * 发票状态：1: 已开票 2：未开票
     */
    @ApiModelProperty(value = "发票状态")
    @TableField("invoice_state")
    private Integer invoiceState;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("creation_time")
    private Date creationTime;
    /**
     * 付款时间
     */
    @ApiModelProperty(value = "付款时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("pay_piece_time")
    private Date payPieceTime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("end_time")
    private Date endTime;
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    /**
     * 用户数据
     */
    @ApiModelProperty(value = "用户数据")
    @TableField(exist = false)
    private User user;


    @ApiModelProperty(value = "删除状态")
    @TableField("is_del")
    private Integer isDel;


}
